package com.tpp.threat_perception_platform.pojo;

import java.util.Date;

/**
 * 
 * @TableName weak_pwd
 */
public class WeakPwd {
    /**
     * 
     */
    private Integer id;

    /**
     * 
     */
    private String macAddress;

    /**
     * 
     */
    private String accountName;

    /**
     * 
     */
    private String weakPwd;

    /**
     * 
     */
    private Date detectTime;

    /**
     * 
     */
    public Integer getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 
     */
    public String getMacAddress() {
        return macAddress;
    }

    /**
     * 
     */
    public void setMacAddress(String macAddress) {
        this.macAddress = macAddress;
    }

    /**
     * 
     */
    public String getAccountName() {
        return accountName;
    }

    /**
     * 
     */
    public void setAccountName(String accountName) {
        this.accountName = accountName;
    }

    /**
     * 
     */
    public String getWeakPwd() {
        return weakPwd;
    }

    /**
     * 
     */
    public void setWeakPwd(String weakPwd) {
        this.weakPwd = weakPwd;
    }

    /**
     * 
     */
    public Date getDetectTime() {
        return detectTime;
    }

    /**
     * 
     */
    public void setDetectTime(Date detectTime) {
        this.detectTime = detectTime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        WeakPwd other = (WeakPwd) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getMacAddress() == null ? other.getMacAddress() == null : this.getMacAddress().equals(other.getMacAddress()))
            && (this.getAccountName() == null ? other.getAccountName() == null : this.getAccountName().equals(other.getAccountName()))
            && (this.getWeakPwd() == null ? other.getWeakPwd() == null : this.getWeakPwd().equals(other.getWeakPwd()))
            && (this.getDetectTime() == null ? other.getDetectTime() == null : this.getDetectTime().equals(other.getDetectTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getMacAddress() == null) ? 0 : getMacAddress().hashCode());
        result = prime * result + ((getAccountName() == null) ? 0 : getAccountName().hashCode());
        result = prime * result + ((getWeakPwd() == null) ? 0 : getWeakPwd().hashCode());
        result = prime * result + ((getDetectTime() == null) ? 0 : getDetectTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", macAddress=").append(macAddress);
        sb.append(", accountName=").append(accountName);
        sb.append(", weakPwd=").append(weakPwd);
        sb.append(", detectTime=").append(detectTime);
        sb.append("]");
        return sb.toString();
    }
}